package com.yixiu.javabase.modules.keyword.staticfinal;

public class WithFinalFields {

    static final SelfCounter wffs=new SelfCounter(); //  静态对象，只保存一份
    /**
     *  TODO
     *  本人认为static和static final达到的效果是一样的，都是保存一个不变的静态对象
     */
    static  SelfCounter wffs2 = new SelfCounter(); // 静态对象，只保存一份

    final SelfCounter wff=new SelfCounter();  // 引用的值可以改变

    public String toString(){
        return "wff= "+ wff + ", wffs= "+wffs  + " wffs2 = " + wffs2;
    }



}
